<?php
namespace app\home\model;

use think\Model;

class Tool_type extends Model
{	
	// 获取列表
	public function getList(){
        return $this->select();
	}

	// 获取某条
    public function getFind($where, $field){
        return $this->where($where)->field($field)->find();
    }

	// 获取某个值
    public function getVal($where, $value){
        return $this->where($where)->value($value);
    }
}